<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>
<html>
	<head>
		<title>首页导航条</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<script type="text/javascript" src="${path}/js/jquery.js"></script>
		<script type="text/javascript" src="${path}/js/CommonsUtil.js"></script>
		<link rel="stylesheet" type="text/css" href="${path}/style/styles.css">
		<link rel="stylesheet" type="text/css" href="${path}/style/main.css">
	</head>
	<body>
		<div class="centext">
			<div class="context_head">
				后台管理 &gt;&gt; 版位分类管理
			</div>
			<div class="context_main_1">
				<div class="mop">
					共 <b>4</b> 数据  &nbsp;
							
					<a href="">上一页 </a>
					【
						<a href="">1</a>&nbsp;
						<a href="">2</a>&nbsp;
						<a href="">3</a>&nbsp;
						<a href="">4</a>&nbsp;
						<a href="">5</a>
					】
					<a href="">下一页 </a>
					
					&nbsp;页次：<font color=red><b>1</b></font>/<b>2</b> 页 
					
					 转到第 
						<select name="">
							<option>1</option>
							<option>2</option>
							<option>3</option>
							<option>4</option>
						</select> 
					页&nbsp;
				</div>
				<form action="${path}/website/navi!deleteSiteNavi.action" method="post">
				<table class="tables" width="100%">
					<tr>
						<th class="th1">版位ID</th>							
						<th class="th1">版位名称</th>							
						<th class="th1">版位宽度</th>							
						<th class="th1">版位高度</th>							
						<th class="th1">版位描述</th>							
						<th class="th1">操作</th>							
					</tr>
					
					<c:choose>
						<c:when test="${empty piList}">
							<td class="td3" colspan="6" style="height:50px;" align=center><a href="${path}/attach/positionSort!loadAllPs.action?baseform.type=addPi">添加版位列表</a></td>
						</c:when>
						<c:otherwise>
							<c:forEach var="pi" items="${piList}">
								<tr>
									<td class="td3" align=center>${pi.piId}</td>							
									<td class="td3" align=center><a href="${path}/">${pi.piName}</a></td>
									<td class="td3" align=center>${pi.piWidth}px</td>
									<td class="td3" align=center>${pi.piHeight}px</td>
									<td class="td3" align=center>${pi.piDesc}</td>
									<td class="td3" align=center>
										<a href="${path}/attach/positionSort!loadAllPs.action?baseform.type=addPi">添加</a>
										<a href="javascript:openWin('${path}/attach/positionItem!loadByIdPi.action?&baseform.type=updatePi&pi.piId=${pi.piId}','',500,300);">修改</a>
										<a href="${path}/attach/positionItem!deleteByIdPi.action?pi.piId=${pi.piId}&pi.adPS.psId=${pi.adPS.psId}">删除</a>
									</td>
								</tr>
							</c:forEach>
						</c:otherwise>
					</c:choose>
					
					<tr>
						<td colspan="11"  class="td3_bottom">
							
						</td>
					</tr>
				</table>		
				</form>
			</div>
		</div>
	</body>
</html>
